//
//  iFlowerAppDelegate.h
//  iFlower
//
//  Created by Hoang Thuc on 14/07/2010.
//  Copyright iNIL 2010. All rights reserved.
//

#import <UIKit/UIKit.h>

@class User;
@class Basket;
@class Payment;
@class Order;
@class DeliveryOptions;

@interface iFlowerAppDelegate : NSObject <UIApplicationDelegate> {
	NSOperationQueue *downloadQueue;
    UIWindow *window;
    UINavigationController *navigationController;
	BOOL logined;
    UIView *loadingView;
	User* user;
	Basket* basket;
	Payment* payment;
}

@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) IBOutlet UINavigationController *navigationController;
@property (nonatomic, retain) NSOperationQueue *downloadQueue;
@property (nonatomic, assign) BOOL logined;
@property (nonatomic, retain) User* user;
@property (nonatomic, retain) Basket* basket;
@property (nonatomic, retain) Payment* payment;
@property (nonatomic, retain) Order* order;
@property (nonatomic, retain) User* newAccount;
@property (nonatomic, retain) DeliveryOptions* deliveryOptions;

+ (iFlowerAppDelegate*) shareDelegate;
- (void) refreshBasket;
- (void)showLoadingView;
- (void)hideLoadingView;
- (void)initializePayPalMEP;
- (void)openSafariToRegister;

@end

